package zybPublic

type LogLevel uint32

const (
	LogDebugLevel LogLevel = iota
	LogInfoLevel
	LogErrorLevel
)

func (v LogLevel)IsDebug() bool {
	return v == LogDebugLevel
}

func (v LogLevel)IsInfo() bool {
	return v == LogInfoLevel
}

func (v LogLevel)IsError() bool {
	return v == LogErrorLevel
}

// 大小写和字段个数都要匹配.
type FollowOrderSet struct {
	Name         string  `db:"STRATEGYNAME"`
	AutoID       int64   `db:"AUTOID"`
	Type         int32   `db:"TYPE"`
	PriceMode    uint32  `db:"PRICEMODE"`
	Ratio        float64 `db:"RATIO"`
	Direct       int32   `db:"DIRECT"`
	ExcuteAccSrc int32   `db:"ExcuteAccSrc"`
	AccountId    int64   `db:"ACCOUNTID"`
	CreateTime   string  `db:"CREATETIME"`
}